<?php defined('APP_PATH') or exit('Access Denied');?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>订单打印</title>
<link rel="stylesheet" type="text/css" href="vonuo/static/css/vonuo.css">
<script type="text/javascript" src="vonuo/static/js/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	window.print();
});
</script>
</head>

<body>
<div class="gs_wraper gs_p_l0">
	<div class="tab_box" style="width:900px;margin:0 auto;">
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="common_table">
			<tr><th colspan="5">订单信息</th></tr>
			<tr><td>订单编号</td><td>会员账号</td><td>会员姓名</td><td>联系电话</td><td>常用邮箱</td></tr>
			<tr><td><?php echo $order['id'];?></td><td><?php echo $user['usercode'];?></td><td><?php echo $user['username'];?></td><td><?php echo $user['mobile'];?></td><td><?php echo $user['email'];?></td></tr>
			<tr><td>订单金额</td><td>邮政编码</td><td colspan="3">通信地址</td></tr>
			<tr><td><?php echo sprintf('%.2f',$order['money']);?> 元</td><td><?php echo $user['zip'];?></td><td colspan="3"><?php echo $user['address'];?></td></tr>
  		</table>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" class="common_table">
			<tr><th colspan="5">商品明细</th></tr>
			<tr><td>商品编号</td><td>商品名称</td><td>商品规格</td><td>订购数量</td><td>商品单价</td></tr>
			<?php foreach($order['info'] as $info){?>
			<tr><td><?php echo $info['bianhao'];?></td><td><?php echo $info['pname'];?></td><td><?php echo $info['danwei'];?></td><td><?php echo $info['number'];?></td><td><?php echo $info['price'];?> 元</td></tr>
			<?php }?>
		</table>
	</div>
</div>
</body>
</html>